package com.eshop.modules.user.service.dto;

import com.eshop.annotation.Query;

public class UserQueryCriteria {
    private Integer grade;
    @Query
    private Integer isPromoter;
    @Query(type = Query.Type.INNER_LIKE)
    private String nickname;
    @Query(type = Query.Type.INNER_LIKE)
    private String phone;
    private Long uid;
    @Query
    private String userType;

    /* access modifiers changed from: protected */
    public boolean canEqual(Object other) {
        return other instanceof UserQueryCriteria;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof UserQueryCriteria)) {
            return false;
        }
        UserQueryCriteria other = (UserQueryCriteria) o;
        if (!other.canEqual(this)) {
            return false;
        }
        Integer this$isPromoter = getIsPromoter();
        Integer other$isPromoter = other.getIsPromoter();
        if (this$isPromoter != null ? !this$isPromoter.equals(other$isPromoter) : other$isPromoter != null) {
            return false;
        }
        Long this$uid = getUid();
        Long other$uid = other.getUid();
        if (this$uid != null ? !this$uid.equals(other$uid) : other$uid != null) {
            return false;
        }
        Integer this$grade = getGrade();
        Integer other$grade = other.getGrade();
        if (this$grade != null ? !this$grade.equals(other$grade) : other$grade != null) {
            return false;
        }
        String this$nickname = getNickname();
        String other$nickname = other.getNickname();
        if (this$nickname != null ? !this$nickname.equals(other$nickname) : other$nickname != null) {
            return false;
        }
        String this$phone = getPhone();
        String other$phone = other.getPhone();
        if (this$phone != null ? !this$phone.equals(other$phone) : other$phone != null) {
            return false;
        }
        String this$userType = getUserType();
        String other$userType = other.getUserType();
        return this$userType != null ? this$userType.equals(other$userType) : other$userType == null;
    }

    public int hashCode() {
        int i = 43;
        Integer $isPromoter = getIsPromoter();
        int hashCode = $isPromoter == null ? 43 : $isPromoter.hashCode();
        Long $uid = getUid();
        int i2 = (hashCode + 59) * 59;
        int hashCode2 = $uid == null ? 43 : $uid.hashCode();
        Integer $grade = getGrade();
        int i3 = (i2 + hashCode2) * 59;
        int hashCode3 = $grade == null ? 43 : $grade.hashCode();
        String $nickname = getNickname();
        int i4 = (i3 + hashCode3) * 59;
        int hashCode4 = $nickname == null ? 43 : $nickname.hashCode();
        String $phone = getPhone();
        int i5 = (i4 + hashCode4) * 59;
        int hashCode5 = $phone == null ? 43 : $phone.hashCode();
        String $userType = getUserType();
        int i6 = (i5 + hashCode5) * 59;
        if ($userType != null) {
            i = $userType.hashCode();
        }
        return i6 + i;
    }

    public void setGrade(Integer grade2) {
        this.grade = grade2;
    }

    public void setIsPromoter(Integer isPromoter2) {
        this.isPromoter = isPromoter2;
    }

    public void setNickname(String nickname2) {
        this.nickname = nickname2;
    }

    public void setPhone(String phone2) {
        this.phone = phone2;
    }

    public void setUid(Long uid2) {
        this.uid = uid2;
    }

    public void setUserType(String userType2) {
        this.userType = userType2;
    }

    public String toString() {
        return "UserQueryCriteria(nickname=" + getNickname() + ", phone=" + getPhone() + ", isPromoter=" + getIsPromoter() + ", userType=" + getUserType() + ", uid=" + getUid() + ", grade=" + getGrade() + ")";
    }

    public String getNickname() {
        return this.nickname;
    }

    public String getPhone() {
        return this.phone;
    }

    public Integer getIsPromoter() {
        return this.isPromoter;
    }

    public String getUserType() {
        return this.userType;
    }

    public Long getUid() {
        return this.uid;
    }

    public Integer getGrade() {
        return this.grade;
    }
}
